//
//  HSYBaseTabBarItem.m
//  HSY
//
//  Created by 陈浩 on 2017/4/1.
//  Copyright © 2017年 金开门. All rights reserved.
//

#import "HSYBaseTabBarItem.h"
#import "UIImage+Tools.h"

@implementation HSYBaseTabBarItem

//懒加载， 初始化了一个小红点
-(UIImageView *)tipView{
    if ( _tipView== nil) {
        _tipView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 6, 6)];
        _tipView.layer.cornerRadius = 3.0;
        _tipView.clipsToBounds = YES;
        _tipView.image = [UIImage imageWithColor:[UIColor redColor] size:CGSizeMake(8, 8)];
        _tipView.hidden = YES;
    }
    
    return _tipView;
}

@end
